<?php
require_once 'BaseMapper.php';

class Application_Model_UsuarioMapper extends BaseMapper
{

    public function __construct()
    {
        parent::setDbTable(new Application_Model_DbTable_Usuario());
        parent::setExtendedModel(new Application_Model_Usuario());
    }

    public function findByCorreo($email)
    {
        $select = $this->getDbTable()->select()->where("correo='" . $email."'");
        return $this->mapSelect($select);
    }
}
